/**
 * Copyright (c) 2024 - present OpenTiny HUICharts Authors.
 * Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
 *
 * Use of this source code is governed by an MIT-style license.
 *
 * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
 * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
 * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
 *
 */
// 图例样式
.huicharts-legend-container {
    position: absolute;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    box-sizing: border-box;

    .huicharts-legend-itemContainer {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex: none;
        box-sizing: border-box;
        cursor: pointer;
    }

    .huicharts-legend-itemContainer.inactive{
        .huicharts-legend-markerContainer,.huicharts-legend-labelContainer {
            color: var(--huicharts-legend-inactiveColor) !important 
        }
    }

    .huicharts-legend-markerContainer {
        box-sizing: border-box;
        flex: none;
    }

    .huicharts-legend-labelContainer {
        box-sizing: border-box;
        flex: none;
    }

    .huicharts-legend-symbol {
        width: 100%;
        height: 100%;
        display: block;
    }


    .demo-legend-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
    }

    .demo-legend-icon {
        width: 24px;
        height: 20px;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 2px;
        box-sizing: border-box;
    }

    .demo-legend-state {
        width: 24px;
        height: 8px;
        border-radius: 2px 2px 0 0;
        margin: -1px -1px 0 -1px;
        box-sizing: border-box;
    }

    .demo-legend-label {
        color: #191919;
        font-size: .875rem;
    }
}